package com.cinc.ebc.quote.parts.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import com.cinc.ebc.quote.parts.entity.QuoteParts;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 零部件
 * @Author: jeecg-boot
 * @Date:   2023-03-26
 * @Version: V1.0
 */
public interface QuotePartsMapper extends BaseMapper<QuoteParts> {

    void updatePartsHandleByProject(@Param("projectId") String projectId);

    int autoUpdateQty(@Param("id") String id);

    int autoUpdateQtyBatch(@Param("idList") List<String> idList);

    int autoUpdateStatus(@Param("id") String id);

    int autoUpdateStatusBatch(@Param("idList") List<String> idList);

    int deleteInvalid(@Param("projectId") String projectId, @Param("materialIdList") List<String> materialIdList);

    int autoUpdateParts(@Param("projectId")String projectId, @Param("materialIdList") List<String> materialIdList);
}
